package cn.flying.cloud.task.core.quartz.enums;

import cn.flying.cloud.base.common.enums.BaseEnumInfo;

/**
 * 任务状态
 *
 * @author: admin
 * @date: 2024年01月15日 15:55
 * @version: 1.0
 */
public enum JobStatusEnum implements BaseEnumInfo {
    RUNNING("RUNNING", "运行"),
    STOP("STOP", "停止"),
    PAUSE("PAUSE", "暂停"),
    ;

    private final String code;
    private final String text;

    JobStatusEnum(String code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String getCode() {
        return this.code;
    }

    @Override
    public String getDesc() {
        return this.text;
    }
}
